package chapter03;

public class java06_FlowControl_Test {
    public static void main(String[] args) {

        // TODO 流程控制 - 小练习
        // 九层妖塔
        /*
         *
         ***
         *****
         *******
         */
        int leave = 20;
        for (int j = 0; j < leave; j++) {
            for (int i = 0; i < (leave - 1) - j; i++) {
                System.out.print(" ");
            }
            for (int i = 0; i < j * 2 + 1; i++) {
                System.out.print("*");
            }
            System.out.println("");
        }
    }
}
